package com.sumainfor.pc.market.controller.gmio;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.market.service.gmio.AssignHousekeeperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p>
 * 运营部服务管家
 * <p>
 *
 * @author: zhoucong
 * @create: 2019-06-08 15:44
 **/
@Controller
@RequestMapping("/key/AssignHousekeeper")
public class AssignHousekeeperController{

    @Autowired
    AssignHousekeeperService assignHousekeeperService;

    /**
    * <p>
    * 待分配管家
    * </p>
    *
    * @author: zhoucong
    * @since:
    */
    @ResponseBody
    @GetMapping("/getAssignHousekeeperCount")
    public JsonResult getAssignHousekeeperCount(){
        return assignHousekeeperService.getAssignHousekeeperCount();
    }


    /**
    * <p>
    * 房源配置变化
    * </p>
    *
    * @author: zhoucong
    * @since:
    */
    @ResponseBody
    @GetMapping("/getHouConPactListCount")
    public JsonResult getHouConPactListCount(){
        return assignHousekeeperService.getHouConPactListCount();
    }

    /**
    * <p>
    * 训房异常回访
    * </p>
    *
    * @author: zhoucong
    * @since:
    */
    @ResponseBody
    @GetMapping("/getRoundsAbnormalCount")
    public JsonResult getRoundsAbnormalCount(){
        return assignHousekeeperService.getRoundsAbnormalCount();
    }

    /**
    * <p>
    * 月续租和日续租
    * </p>
    *
    * @author: zhoucong
    * @since:
    */
    @ResponseBody
    @GetMapping("/getForRenewal")
    public JsonResult getForRenewal(){
        return assignHousekeeperService.getForRenewal();
    }

}
